package com.zhaojindong.ioc.component.lifecycle.second;

import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * created by dean on 2018/8/20
 */
@Log4j
public class TestBean implements InitializingBean, DisposableBean {
    @Override
    public void afterPropertiesSet() {
        log.info(">>> afterPropertiesSet >>>");
    }

    @Override
    public void destroy() {
        log.info(">>> destroy >>>");
    }
}